<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/jsp/common/inc.jsp"%>
</head>
<script type="text/javascript">
	// 提交表单
	var submitForm = function($dialog, $grid, $pjq){
		if($("form").form("validate")){
			var url = "${pageContext.request.contextPath}/caiwuController/edit";
			$.post(url,sy.serializeObject($("form")),function(result){
				if(result.success){
					$grid.datagrid("load");
					$dialog.dialog("destroy");
					$pjq.messager.alert("提示:",result.msg,"info");
				}else{
					$pjq.messager.alert("提示:",result.msg,"error");
				}
			},"json");
		}
	}
	$(function(){
		// 金额
		$("#id").validatebox({
			required : true,
			missingMessage : "请输入金额"
		});
	})
</script>
<body>
	<form action="post" class="form">
		<input type="hidden" name="id" value="${qkinfo.id }" />
		<input type="hidden" name="branchId" value="${qkinfo.branchId }" />
		<input type="hidden" name="tradeDate" value="${qkinfo.tradeDate }" />
		<input type="hidden" name="qkTypeId" value="${qkinfo.qkTypeId }" />
		<input type="hidden" name="createTime" value="${qkinfo.createTime }" />
		<input type="hidden" name="createUser" value="${qkinfo.createUser }" />
		<fieldset>
			<legend>欠款信息</legend>
			<table class="table" style="width: 100%">
				<tr>
					<td>欠款金额</td>
					<td><input id="qkAmount" name="qkAmount" class="easyui-numberbox" maxlength="10"
					    precision="2" value="${qkinfo.qkAmount }"/></td>
					<td>备注</td>
					<td><input id="remark" name="remark" maxlength="30" value="${qkinfo.remark }"/></td>
				</tr>
			</table>
		</fieldset>
	</form>
</body>
</html>